﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using ZLB_Service.TiJian;
using ZLB_Unility.Results;

namespace ZLB_Report_WebApi.Api
{
    [RoutePrefix("api/PDF")]
    public class PDFController : ApiController
    {
        private PDFService PDFService = new PDFService();

        [HttpGet,Route("InitPDF")]
        public ResultInfo InitPDF()
        {
            ResultInfo res = PDFService.InitPDF();
            return res;
        }

        [HttpGet, Route("AutoPDF")]
        public ResultInfo AutoPDF()
        {
            ResultInfo res = PDFService.AutoPDF();
            return res;
        }

        [HttpGet, Route("EditPDFInit")]
        public ResultInfo EditPDFInit(string tjh)
        {
            ResultInfo res = PDFService.EditPDFInit(tjh);
            return res;
        }
    }

}
